import { createWebHistory, createRouter } from 'vue-router'
import Demo01 from '../views/Demo01.vue'
import Demo02 from '../views/Demo02.vue'

const routes = [
    {path: '/', component: Demo01},
    {path: '/demo01', component: Demo01},
    {path: '/demo02/:id', component: Demo02},
]

const router = createRouter({
    history: createWebHistory(),
    routes,
})

export default router